import http from "@/utils/request.js"


// 请求接口的方法会统一封装到这个api文件夹下面的文件中

//登录请求

export let userLoginApi = (username, password) => http.post('/users/login', { username, password })

// 获取登录日志

export let getLoginLogApi = (page, count) => http.get(`/getloginlog?page=${page}&count=${count}`)

// 获取验证码
export let getCaptchaApi = () => http.get("/users/getCaptcha?v=next")

// export let getCaptchaApi = () => http.get('/users/getCaptcha?v=next')

// 校验验证码

export let checkCaptchaApi = (captcha)=> http.get("users/verifyCaptcha?captcha="+captcha)
